﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace BanSupport
{
    public class Tools
    {
        public static string Serialize(System.Object aObject)
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(aObject);
        }

        public static T Deserialize<T>(string str)
        {
            return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(str);
        }

    }

}
